All Questions
5 questions
0votes
1answer
114views
How do I find and replace something AFTER a specific term in a terminal output
I need to run blkid and copy a specific UUID after a specific known partition name. Then, I need to paste this into an exists config file, replacing a UUID that it's already there (parent_device_uuid)....
0votes
1answer
187views
Find and replace everything inside bracket using unix shell - several lines
I need to find and replace a big part of a json file using shell. For exemple I have this file : { "Balise1": true, "Balise2": true, "OtherThingEnabled": false, ...
8votes
2answers
18kviews
Using jq, how to replace the value of particular key?
How to replace the xxx with yyy? { "spec": { "template": { "spec": { "containers": [{ "args&...
4votes
2answers
4kviews
How to replace multiple lines with "sed" and convert to JSON?
{ "auth": 'log', "appid": 21, "custid": "599c1f910f53ada8468b4567", "hwid": "59e719ba0f53adfd6a8b4597" } 24/10/2017 12:44:24 -------------------------------------------------------------------...
11votes
2answers
34kviews
Editing a child JSON element value with jq
I'm trying to use jq in order to change a child's value. For instance, I want to change the value of "test2" from ["yo", "bye"] to ["hi"]. { "title": "hello", "body": { "test1": 123, ...